﻿1 	private void AddSeat(Seat s, string direction)
2 	{
3 		switch (direction)
4 		{
5 			case "middle":
6 				roomOutline[s.SeatId].BackColor = Color.BlueViolet;     
7 				AlgorithmSeats.Add(s);                                      
8 				lastTime = direction;
9 				movesLeft++;                                           
10				movesRight++;                                           
11				break;
12			case "left":
13				roomOutline[s.SeatId].BackColor = Color.BlueViolet;
14				AlgorithmSeats.Add(s);
15				lastTime = direction;                                    
16				movesLeft++;
17				break;
18			case "right":
19				roomOutline[s.SeatId].BackColor = Color.BlueViolet;
20				AlgorithmSeats.Add(s);
21				lastTime = direction;
22				movesRight++;
23				break;
24		}
25
26	}